/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.config.service.message;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.config.entity.message.ConfigMessage;
import com.thinkgem.jeesite.modules.config.dao.message.ConfigMessageDao;

/**
 * 短信配置Service
 *
 * @author JiangYongKang
 * @version 2016-12-30
 */
@Service
@Transactional(readOnly = true)
public class ConfigMessageService extends CrudService<ConfigMessageDao, ConfigMessage> {
    @Autowired
    private ConfigMessageDao configMessageDao;

    public ConfigMessage get(String id) {
        return super.get(id);
    }

    public List<ConfigMessage> findList(ConfigMessage configMessage) {
        return super.findList(configMessage);
    }

    public Page<ConfigMessage> findPage(Page<ConfigMessage> page, ConfigMessage configMessage) {
        return super.findPage(page, configMessage);
    }

    @Transactional(readOnly = false)
    public void save(ConfigMessage configMessage) {
        super.save(configMessage);
    }

    @Transactional(readOnly = false)
    public void delete(ConfigMessage configMessage) {
        super.delete(configMessage);
    }
    
    public ConfigMessage getMessageConfig(){
        return configMessageDao.getMessageConfig();
    }

}